package org.dizem.minichat.vo;


import org.dizem.minichat.model.Message;

/**
 * User: DIZEM
 * Time: 11-3-26 上午9:39
 */
public class DataPacket {
	private Operation operation;
	private MessageVO messageVO;
	private UserVO userVO;
	private int clientPort;
	private String info;

	public static DataPacket RESPONSE_PACKET = new DataPacket(Operation.valueOf("RESPONSE"));

	public DataPacket(Operation operation, String info) {
		this.operation = operation;
		this.info = info;
	}

	public DataPacket() {
	}

	public DataPacket(Operation operation) {
		this.operation = operation;
	}

	public DataPacket(MessageVO messageVO) {
		this.messageVO = messageVO;
	}

	public int getClientPort() {
		return clientPort;
	}

	public void setClientPort(int clientPort) {
		this.clientPort = clientPort;
	}

	public Operation getOperation() {
		return operation;
	}

	public void setOperation(Operation operation) {
		this.operation = operation;
	}

	public MessageVO getMessageVO() {
		return messageVO;
	}

	public void setMessageVO(MessageVO messageVO) {
		this.messageVO = messageVO;
	}

	public UserVO getUserVO() {
		return userVO;
	}

	public void setUserVO(UserVO userVO) {
		this.userVO = userVO;
	}
}
